<?php
class Usuarios_Form_Buscar extends Form_Cna{
	
		
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	public function init() {
		
		//Crea el formulario para el registro de usuarios del sistema
		$this->setName ( 'buscar' );
		$this->setMethod("POST");
		
		$buscar = new Zend_Form_Element_Text ( 'buscar' );
		$buscar->setLabel( 'Buscar : ' );
		$buscar->setRequired ( true );
		$buscar->addFilter ( 'StripTags' );
		$buscar->addFilter ( 'StringTrim' );
		$buscar->setAttrib("size",60);
		$array_elements[]=$buscar;
		
		$submit = new Zend_Form_Element_Submit ( 'btnBuscar' );
		$submit->setValue('Buscar');
		$submit->setLabel("Buscar");
		$submit->setAttrib("class", "iceCmdBtn");
		$array_elements[]=$submit;

		$this->addElements ($array_elements);
		
//		$this->loadTableDecorators();
		
		$this->loadViewScriptDecorators();
	}
	
	public function loadViewScriptDecorators() {
		$this->setDecorators ( array (array ('viewScript', array ('viewScript' => 'viewscripts/buscar_form.phtml' ) ) ) );
	}
}